/* eslint-disable import/prefer-default-export */
import request from '@/utils/request';

export async function getEmpNameList(params) {
  return request(`/esApi/proveHdl/getEmpList`, {
    method: 'POST',
    body: params,
  });
}
export async function recordAddCheck(params) {
  return request(`/esApi/consult/insertRcrdAddCheck`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function recordAdd(params) {
  return request(`/esApi/consult/insert`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function getSearchRecordList(params) {
  return request(`/esApi/consult/getList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function recordDic(params) {
  return request(`/csApi/mdm/nmDict/queryDictItemsByCodes`, {
    method: 'POST',
    body: params,
  });
}
export async function deleteSearchRecordData(params) {
  return request(`/esApi/consult/delete`, {
    method: 'POST',
    body: params,
  });
}
export async function getDetail(params) {
  return request(`/esApi/consult/get`, {
    method: 'POST',
    body: params,
  });
}
export async function recordUpdate(params) {
  return request(`/esApi/consult/update`, {
    method: 'POST',
    body: params,
  });
}
export async function getHistorty(params) {
  return request(`/esApi/consult/consultById`, {
    method: 'POST',
    body: params,
  });
}
